<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/confirmOrder.css" />
		<link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="//cdn1.lncld.net/static/js/2.1.2/av-min.js" type="text/javascript" charset="utf-8"></script>

	</head>

	<body>
		
		<div class="loading" v-show="!loading">
			<div class="load"></div>
			<div class="load2"></div>
		</div>
		
		<div class="header" onclick="history.go(-1)">
			<i class="icon Hui-iconfont">&#xe67d;</i>
			<span>确认订单</span>
		</div>
		<div class="main">
			<div class="address" @click="address">
				<p v-if="addresslist.length>0"><b v-html="addresslist[0].name">于涵</b>
					<span v-if="addresslist[0].sex">先生</span>
					<span v-if="!addresslist[0].sex">女士</span>
					<span v-html="addresslist[0].phone">13821980965</span></p>
				<p v-html="addresslist[0].address" v-if="addresslist.length>0">天津理工大学宾水西道391号9号宿舍楼115室</p>
				<p v-else style="text-align:center;">选择地址</p>
			</div>
			<div class="cart-group">
				<div class="logotitle">
					<img src="../shoplist/{{shop[0].attributes.shopimg}}" />
					<p class="shopinfo" v-html="shop[0].attributes.shop_name">傅大人汉堡</p>
				</div>

				<ul class="foodlist" v-for="item in shop[0].attributes.products_data">
					<li>
						<span class="cellname" v-html="item.productname">香辣鸡腿堡</span>
						<span class="cellquantity">x{{item.productnum}}</span>
						<span class="celltotal">￥{{item.price}}</span>
					</li>
				</ul>
				<div class="fee">
					<div>配送费</div>
					<div>￥{{shop[0].attributes.shop_sendprice}}</div>
				</div>
				<div class="total">
					<div>订单</div>
					<div>￥{{shop[0].attributes.shop_sendprice*1+shop[0].attributes.total}}</div>
				</div>
			</div>

		</div>
		<div class="confirmorder">
			<div class="price">
				待支付￥{{shop[0].attributes.shop_sendprice*1+shop[0].attributes.total*1}}
			</div>
			<div class="confirm" @click="confirm">
				确认下单
			</div>
		</div>
		<div class="unmoney" v-show="unmoney">
			<div>余额不足请</div>
			<div class="Recharge" @click="Recharge">充值</div>
		</div>
	</body>
	<script src="../js/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/confirmOrder.js" type="text/javascript" charset="utf-8"></script>

</html>